/**
 * @description
 * @param {number} num -字符串长度 默认32
 * @returns {string} 随机字符串
 */
module.exports = {
  randomString: (num = 32) => {
    const t = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678'
    let result = '',
      i = 0
    while (++i <= num) {
      result += t.charAt(Math.floor(Math.random() * t.length))
    }
    return result
  },
}
